package android.content;

import android.database.Cursor;
import android.net.Uri;

/**
 * @author slc
 * @date 2022/03/30 下午 3:58
 */
public abstract class ContentProvider extends Context {
    public Context getContext() {
        return this;
    }

    public abstract int delete(Uri arg0, String key, String[] arg2);

    public abstract String getType(Uri arg0);

    public abstract Uri insert(Uri arg0, ContentValues values);

    public abstract boolean onCreate();

    public abstract Cursor query(Uri arg0, String[] arg1, String key, String[] arg3, String arg4);

    public abstract int update(Uri arg0, ContentValues arg1, String arg2, String[] arg3);
}
